< previous page page_238 next page >

Page 238
Managing Program References
One of the elements that you have to manage is your program's references. The references point to different library routines that enable your code to perform specific tasks. For example, if you plan to access databases with your programs, you need to specify the Data Access Objects library as one that is used by your code. Controlling references is quite easy in Visual Basic. The References dialog box lets you select the references required by your program; to do so, mark the check box to the side of the reference (see Figure 11.8). Mark the ones you need and unmark the ones you don't need. You access the References dialog box by selecting Project, References.
0238-01.jpg
Figure 11.8
The References dialog box lets you choose
which libraries are used by your program.
tip.gif
After you add a reference to your project, you can view its public constants and functions in the Object Browser, which you display by clicking the Object Browser button or by pressing F2.

Controlling Your Controls
In a manner similar to library references, you can add and remove custom controls from your project. When you loaded Visual Basic, a number of custom controls were loaded into the Toolbox window automatically. However, you usually need controls designed to perform specific tasks that are beyond the capabilities of the standard controls. You can manage the custom controls in your project by using the Components dialog box (see Figure 11.9). Select Project, Components to access this dialog box. Here, as in the References dialog box, you choose the custom controls to add to your program by marking the check box next to the control name. After you exit the dialog box, your control toolbox is modified to display the new controls.
Adding Forms, Modules, and Classes to the Project
As you develop more programs, you might find that you have standard procedures or forms that can be used in many of your projects. You also might have developed custom procedures for getting the names and passwords of users, for opening files, or for any number of other tasks that are used in almost every program.

 
< previous page page_238 next page >